<?php
class shape{
    public function getArea(){}
}
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/9
 * Time: 19:12
 */
class rectangle extends shape{
    private  $width,$height;

    public function __construct($width,$height){
        $this->height=$height;
        $this->width=width;
    }
    public function getArea(){
        return $this->width*$this->height;
    }

}
class Rect extends rectangle{
    public function __construct($width)
    {
        //
    }
}